package com.ld.hpfs.service.impl;

import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ld.hpfs.dao.MailTemplateMapper;
import com.ld.hpfs.service.MailTemplateService;

/**
 * 邮件、短息模板ServiceImpl
 */
@Service
public class MailTemplateServiceImpl implements MailTemplateService {

	// 邮件、短息Mapper
	@Autowired
	private MailTemplateMapper mailTemplateMapper;

	/**
	 * 新增邮件、短息模版
	 */
	@Override
	public int addMailTemplate(HashMap<String, Object> param) {
		return mailTemplateMapper.addMailTemplate(param);
	}

	/**
	 * 更新邮件、短息模板
	 */
	@Override
	public int updateMailTemplate(HashMap<String, Object> param) {
		return mailTemplateMapper.updateMailTemplate(param);
	}

	/**
	 * 查询邮件、短息模板
	 */
	@Override
	public HashMap<String, Object> getMailTemplate(
			HashMap<String, Object> param) {
		return mailTemplateMapper.getMailTemplate(param);
	}
}
